package com.health.activity.qyinfo;

import com.health.R;
import com.health.fragment.NovaFragment;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;

/**
 * 签约服务项目包
 * (备注)
 * @author nova
 *
 */
public class QY_fwxmb_bzFragment extends NovaFragment  {

	private EditText ed_bz;
	private View baseView;
	private int flagSave = -1;
	@Override
	public View findViews(LayoutInflater inflater) {
		// userInfo = NovaApplication.userInfo;
		baseView = inflater.inflate(R.layout.qyinfo_bz, null);
		flagSave = ((QYInfo) getActivity()).getFlagSave();
		findViews(baseView);
		setData();
		return baseView;
	}

	@Override
	public void setupView(View view) {

	}

	@Override
	public void addListener() {

	}

	public void setData() {
		if(((QYInfo)getActivity()).cont!=null){
			setBz(((QYInfo)getActivity()).cont.getBz());
		}
	}

	public void findViews(View view) {
		ed_bz=(EditText)view.findViewById(R.id.ed_bz);

	}

	public String getBz(){
		return ed_bz.getText().toString();
	}
	public void setBz(String bz){
		  ed_bz.setText(bz);
		  if (flagSave == 1) {
				ed_bz.setEnabled(false);
			}
	}
}
